// type Array<RouterConfig>
// declare type RouteConfig = {
//   path: string;
//   component?: Component;
//   name?: string; // for named routes (命名路由)
//   components?: { [name: string]: Component }; // for named views (命名视图组件)
//   redirect?: string | Location | Function;
//   alias?: string | Array<string>;
//   children?: Array<RouteConfig>; // for nested routes
//   beforeEnter?: (route: Route, redirect: Function, next: Function) => void;
//   meta?: any;
// }


 export const routes = [
    
     { path: '/', component:"" },
     { path: '/bg', component: require('./views/Bg.vue')},
     { path: '/Login', component: require('./views/Login.vue')},
     { path: '/Main', component: require('./views/Main.vue'),
        children: [
            { path : '',component: require('./views/Nav/FrontIndex.vue')},
            { path : 'choose-Lesson',component: require('./views/Nav/ChooseLesson.vue')},
            { path : 'Study',component: require('./views/Nav/Study.vue')},
            { path : 'examination',component: require('./views/Nav/Examination.vue')},
            { path : 'mySettings',component: require('./views/Nav/MySettings.vue')},
        ]
    },
    { path: '/news',component:require('./views/Detail/InfoListView.vue'),
        children: [
            { path: '',component: require('./views/Detail/InfoList.vue'),},
            { path: '/newsid',component: require('./views/Detail/InfoNews.vue')}
        ]
    },
    { path: '/notice',component:require('./views/Detail/NoticeListView.vue')},
    { path: '/signin',component:require('./views/Detail/SignInView.vue')},
    { path: '/training',component:require('./views/Detail/TrainingListView.vue')},

    { path: '/lesson/:id',name:'lesson',component: require('./views/LessonDetailView.vue')},
    { path: 'test', component: require('./views/Test.vue')},
    { path: '/userinfo',component:require('./views/User/UserInfo.vue')},

    //  { path: '/parent', component: require('./views/Parent.vue'),
    //    children: [
    //     { path: '', component:  require('./views/Default.vue') },
    //     { path: 'foo', component:  require('./views/Foo.vue') },
    //     { path: 'bar', component:  require('./views/Bar.vue') },
    //     ]
    // },
     { path : '*', component : require('./views/Notfound')}
 ]

